/* 我的页面样式 */
.my-container {
  padding: 16px;
  padding-bottom: 100px; /* 为固定的TabBar留出空间 */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

/* 用户信息卡片 */
.user-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.user-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px 20px 0 0;
}

.user-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  position: relative;
}

.user-avatar {
  position: relative;
  margin-right: 20px;
  flex-shrink: 0;
}

.avatar-img {
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-weight: 600;
  font-size: 32px;
  color: white;
  transition: all 0.3s ease;
}

.avatar-img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.level-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  z-index: 2;
}

.level-badge .adm-tag {
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  box-shadow: 0 4px 12px rgba(250, 173, 20, 0.3);
  border: 2px solid white;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-phone {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #666;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-phone::before {
  content: '📱';
  font-size: 16px;
}

.user-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #fff7e6 0%, #fff2d9 100%);
  border-radius: 12px;
  border: 1px solid #ffd591;
}

.rating-icon {
  color: #faad14;
  font-size: 16px;
  filter: drop-shadow(0 1px 2px rgba(250, 173, 20, 0.3));
}

.rating-score {
  font-size: 16px;
  font-weight: 700;
  color: #faad14;
  text-shadow: 0 1px 2px rgba(250, 173, 20, 0.3);
}

.rating-text {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* 用户状态徽章 */
.user-status {
  margin-top: 8px;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.status-badge.active {
  background: linear-gradient(135deg, #f6ffed 0%, #e6f7d6 100%);
  color: #52c41a;
  border-color: #b7eb8f;
  box-shadow: 0 4px 12px rgba(82, 196, 26, 0.2);
}

.status-badge.pending {
  background: linear-gradient(135deg, #fff7e6 0%, #ffe7ba 100%);
  color: #fa8c16;
  border-color: #ffd591;
  box-shadow: 0 4px 12px rgba(250, 140, 22, 0.2);
}

.status-badge.suspended {
  background: linear-gradient(135deg, #fff2f0 0%, #ffccc7 100%);
  color: #ff4d4f;
  border-color: #ffccc7;
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.2);
}

.edit-btn {
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 12px;
  height: 36px;
  border: 2px solid #1890ff;
  color: #1890ff;
  background: rgba(24, 144, 255, 0.05);
  font-weight: 600;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

.edit-btn:hover {
  background: #1890ff;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

/* 等级进度条 */
.level-progress {
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.progress-text {
  font-size: 16px;
  color: #1890ff;
  font-weight: 600;
}

.progress-bar {
  margin-bottom: 12px;
}

/* 自定义进度条样式 */
.custom-progress {
  width: 100%;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1890ff 0%, #52c41a 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.next-level {
  font-size: 12px;
  color: #999;
  text-align: center;
}

.next-level span {
  font-weight: 600;
}

/* 用户统计 */
.user-stats {
  display: flex;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #1890ff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #999;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: #e8e8e8;
  margin: 0 16px;
}

/* 今日统计 */
.today-stats {
  margin-bottom: 20px;
}

.stats-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.stats-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-grid-item {
  text-align: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-grid-item:hover {
  transform: translateY(-2px);
  background: #e9ecef;
}

.grid-value {
  font-size: 24px;
  font-weight: 700;
  color: #1890ff;
  margin-bottom: 8px;
}

.grid-label {
  font-size: 12px;
  color: #666;
}

/* 历史统计 */
.history-stats {
  margin-bottom: 20px;
}

/* 服务质量统计 */
.quality-stats {
  margin-bottom: 20px;
}

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quality-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.quality-item:hover {
  transform: translateY(-2px);
  background: #e9ecef;
}

.quality-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.quality-info {
  flex: 1;
}

.quality-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.quality-value {
  font-size: 20px;
  font-weight: 700;
  color: #52c41a;
}

/* 月度收益趋势 */
.monthly-trend {
  margin-bottom: 20px;
}

.trend-content {
  display: flex;
  gap: 20px;
}

.trend-item {
  flex: 1;
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.trend-item:hover {
  transform: translateY(-2px);
  background: #e9ecef;
}

.trend-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.trend-value {
  font-size: 24px;
  font-weight: 700;
  color: #1890ff;
  margin-bottom: 8px;
}

.trend-change {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 12px;
  display: inline-block;
}

.trend-change.positive {
  background: #f6ffed;
  color: #52c41a;
}

.trend-change.negative {
  background: #fff2f0;
  color: #ff4d4f;
}

/* 快捷操作 */
.quick-actions {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #333;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.action-item:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.05);
}

.action-icon {
  font-size: 28px;
  color: var(--action-color);
  margin-bottom: 8px;
  display: inline-block;
  width: 28px;
  text-align: center;
}

.action-text {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

/* 快捷操作徽章 */
.action-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4d4f;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

/* 菜单徽章 */
.menu-badge {
  margin-left: auto;
}

/* 功能菜单 */
.menu-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.menu-list {
  --border-inner: none;
  --border-bottom: none;
}

.menu-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.3s ease;
}

.menu-item:hover {
  background: #f8f9fa;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-icon {
  font-size: 20px;
  color: #1890ff;
  width: 24px;
  text-align: center;
  display: inline-block;
}

.menu-text {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

/* 退出登录 */
.logout-section {
  margin-bottom: 20px;
}

.logout-btn {
  width: 100%;
  border-radius: 20px;
  height: 48px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid #ff4d4f;
  color: #ff4d4f;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #ff4d4f;
  color: white;
  transform: translateY(-1px);
}

/* 版本信息 */
.version-info {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.6;
}

.version-info p {
  margin: 4px 0;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 为不同部分添加动画 */
.user-card {
  animation: fadeInUp 0.6s ease;
}

.user-avatar {
  animation: slideInLeft 0.6s ease 0.1s both;
}

.user-info {
  animation: slideInLeft 0.6s ease 0.2s both;
}

.edit-btn {
  animation: slideInLeft 0.6s ease 0.3s both;
}

.today-stats {
  animation: slideInLeft 0.6s ease 0.1s both;
}

.history-stats {
  animation: slideInLeft 0.6s ease 0.2s both;
}

.quality-stats {
  animation: slideInLeft 0.6s ease 0.3s both;
}

.monthly-trend {
  animation: slideInLeft 0.6s ease 0.4s both;
}

.quick-actions {
  animation: slideInLeft 0.6s ease 0.5s both;
}

.menu-section {
  animation: slideInLeft 0.6s ease 0.6s both;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .my-container {
    padding: 12px;
  }
  
  .user-card {
    padding: 20px;
  }
  
  .user-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  
  .user-avatar {
    margin-right: 0;
    margin-bottom: 16px;
  }
  
  .user-info {
    text-align: center;
  }
  
  .user-name {
    font-size: 20px;
  }
  
  .user-phone {
    justify-content: center;
  }
  
  .user-rating {
    justify-content: center;
  }
  
  .edit-btn {
    width: 100%;
    max-width: 200px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .quality-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .trend-content {
    flex-direction: column;
    gap: 16px;
  }
  
  .quick-actions .adm-grid {
    gap: 12px;
  }
  
  .action-item {
    padding: 16px 12px;
  }
  
  .action-icon {
    font-size: 24px;
  }
  
  .action-text {
    font-size: 11px;
  }
}

/* 平板设备优化 */
@media (min-width: 481px) and (max-width: 768px) {
  .user-card {
    padding: 28px;
  }
  
  .user-name {
    font-size: 26px;
  }
  
  .avatar-img {
    --size: 90px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 大屏幕优化 */
@media (min-width: 769px) {
  .my-container {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .user-card {
    padding: 32px;
  }
  
  .user-name {
    font-size: 28px;
  }
  
  .avatar-img {
    --size: 100px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .my-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  }
  
  .user-card,
  .stats-card,
  .menu-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
  }
  
  .user-name,
  .stats-header h3,
  .section-title,
  .menu-text {
    color: #fff;
  }
  
  .user-phone,
  .grid-label,
  .quality-label {
    color: #ccc;
  }
}
